from enum import Enum, StrEnum


class CreatedByRole(StrEnum):
    ACCOUNT = "account"
    END_USER = "end_user"


class UserFrom(StrEnum):
    ACCOUNT = "account"
    END_USER = "end-user"

class IconType(StrEnum):
    IMAGE = "image"
    EMOJI = "emoji"

class Gender(Enum):
    MALE = 1
    FEMALE = 0
    @staticmethod
    def get_gender(value: int)->"Gender":
        if value == 1:
            return Gender.MALE
        else:
            return Gender.FEMALE
class AccountStatus(StrEnum):
    PENDING = "pending"
    UNINITIALIZED = "uninitialized"
    ACTIVE = "active"
    BANNED = "banned"
    CLOSED = "closed"

    @staticmethod
    def choices()->list[str]:
        return ["pending","uninitialized","active","banned","closed"]